/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class BloodPressureMonitor {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010070012';
    }

    get categoryName() {
        return '\u8840\u538b\u8ba1';
    }

    getDiastolicPressure(params) {
        return command({
            method: 'getDiastolicPressure',
            methodId: 'pZgunZ0G',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPulse(params) {
        return command({
            method: 'getPulse',
            methodId: 'pGoxILcx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRecord(params) {
        return command({
            method: 'getRecord',
            methodId: 'pUPQldh3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSystolicPressure(params) {
        return command({
            method: 'getSystolicPressure',
            methodId: 'p1vZRvvb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCleanRecord(params) {
        return command({
            method: 'setCleanRecord',
            methodId: 'ppAXPrFV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'peH3fAxS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default BloodPressureMonitor;
